//
//  WFProjectModel.m
//  谷居
//
//  Created by dllo on 16/6/17.
//  Copyright © 2016年 刘万方. All rights reserved.
//

#import "WFProjectModel.h"

@implementation WFProjectModel
//- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
//    if ([key isEqualToString:@"description"]) {
//        [__description setValue:value forKey:key];
//    }
//}


- (void)encodeWithCoder:(NSCoder *)aCoder {
//    [super encodeWithCoder:aCoder];
//    [aCoder encodeObject:self.provinceName forKey:@"provinceName"];
    [aCoder encodeObject:self.typeShow forKey:@"typeShow"];
    [aCoder encodeObject:self.buildingName forKey:@"buildingName"];
    
    [aCoder encodeObject:self.user forKey:@"user"];
    [aCoder encodeObject:self.title forKey:@"title"];
//    [aCoder encodeObject:self.stageShow forKey:@"stageShow"];
    [aCoder encodeObject:self.costShow forKey:@"costShow"];
    [aCoder encodeObject:self.areaShow forKey:@"areaShow"];
//    [aCoder encodeObject:self.date forKey:@"date"];
//    [aCoder encodeObject:self.townName forKey:@"townName"];
//    [aCoder encodeObject:self.community forKey:@"community"];
//    [aCoder encodeObject:self.photos forKey:@"photos"];
    [aCoder encodeObject:self.styleShow forKey:@"styleShow"];
//    [aCoder encodeObject:self.cityName forKey:@"cityName"];
//    [aCoder encodeObject:self.detailAddress forKey:@"detailAddress"];
//    [aCoder encodeInteger:self.style forKey:@"style"];
//    [aCoder encodeBool:self.liked forKey:@"like"];
//    [aCoder encodeInteger:self.likeNum forKey:@"likeNum"];
//    [aCoder encodeInteger:self.stage forKey:@"stage"];
//    [aCoder encodeInteger:self.type forKey:@"type"];
//    [aCoder encodeInteger:self.state forKey:@"state"];
    [aCoder encodeInteger:self.id forKey:@"id"];
//    [aCoder encodeInteger:self.proceed forKey:@"proceed"];
//    [aCoder encodeInteger:self.roomStylePhotoId forKey:@"roomStylePhotoId"];
    [aCoder encodeInteger:self.coverPhoto forKey:@"coverPhoto"];
//    [aCoder encodeInteger:self.buildingId forKey:@"buildId"];
//    [aCoder encodeInteger:self.cost forKey:@"cost"];
//    [aCoder encodeInteger:self.area forKey:@"area"];
//    [aCoder encodeInteger:self.commentNum forKey:@"commentNum"];
//    [aCoder encodeInteger:self.isVisit forKey:@"isVisit"];
    
    
    
    
}
- (instancetype)initWithCoder:(NSCoder *)aDecoder {
    self = [super init];
    if (self) {
        self.typeShow = [aDecoder decodeObjectForKey:@"typeShow"];
        self.buildingName = [aDecoder decodeObjectForKey:@"buildingName"];
        self.user = [aDecoder decodeObjectForKey:@"user"];
        self.title = [aDecoder decodeObjectForKey:@"title"];
        self.costShow = [aDecoder decodeObjectForKey:@"costShow"];
        self.areaShow = [aDecoder decodeObjectForKey:@"areaShow"];
        self.styleShow = [aDecoder decodeObjectForKey:@"styleShow"];
        self.id = [aDecoder decodeIntegerForKey:@"id"];
        self.coverPhoto = [aDecoder decodeIntegerForKey:@"coverPhoto"];
    }
    return self;
}

- (void)dealloc {
    [_user release];
    [_title release];
    [_buildingName release];
    [_costShow release];
    [_areaShow release];
    [_styleShow release];
    [_typeShow release];
    [super dealloc];
}
@end

